package cn.itcast.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(path = "/user")
public class HelloController {

    @RequestMapping(path = "/hello")
    public String sayHello() {
        System.out.println("Hello !");
        //通过视图解析器根据 success 去寻找 success.jsp
        return "success";
    }

    @RequestMapping(value = "/uuu",params = {"username"})
    public String sayUuu(String username) {
        System.out.println("Hello UUU");
        //通过视图解析器根据 success 去寻找 success.jsp
        return "uuu";
    }
}
